import { type App } from 'vue'
import { createI18n } from 'vue-i18n'
import cn from './cn'
import en from './en'
import jp from './jp'
// 创建 i18n
const i18n = createI18n({
  locale: 'jp',
  messages: {
    en,
    cn,
    jp,
  },
})

const initI18n = (app: App<Element>) => {
  app.use(i18n)
}

export { initI18n }
